﻿using System.Data;
using System;

namespace PushNotify.DB
{
    /// <summary>
    /// 
    /// </summary>
    public class StoredProcedures : StoredProcedures_Base
    {

        private MainDB _db;

        public StoredProcedures(MainDB db)
            : base(db)
        {
            _db = db;
        }
        #region Tiennv



        public void ReportExpiration_Insert(string Uuid,DateTime ExpirationDate,int DaysToExpire,string AppId)
        {
            IDbCommand cmd = _db.CreateCommand("ReportExpiration_Insert", true);
            _db.AddParameter(cmd, "Uuid", DbType.String, Uuid);
            _db.AddParameter(cmd, "ExpirationDate", DbType.DateTime, ExpirationDate);
            _db.AddParameter(cmd, "DaysToExpire", DbType.Int32, DaysToExpire);
            _db.AddParameter(cmd, "AppId", DbType.String, AppId);
            CreateDataTable(cmd);

        }

      

        #endregion

    }
} // End of namespace



